using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BgMoveWithCamera : MonoBehaviour
{
    private Camera cam;

    [SerializeField] private float parallax;
    private void Awake()
    {
        cam = Camera.main;
    }
    

    // Update is called once per frame
    void Update()
    {

        transform.position = new Vector3(cam.transform.position.x * parallax, transform.position.y, 0);

    }
}
